package top.chengdongqing.mishop.entities

import jakarta.persistence.Entity
import jakarta.persistence.Id
import jakarta.persistence.Table
import java.time.LocalDateTime

@Entity
@Table(name = "order_events")
data class OrderEvent(
    @Id
    var orderId: Int,
    var userId: Int,
    var paymentAt: LocalDateTime? = null,
    var packingAt: LocalDateTime? = null,
    var shippedAt: LocalDateTime? = null,
    var completedAt: LocalDateTime? = null,
    var canceledAt: LocalDateTime? = null,
    var refundedAt: LocalDateTime? = null,
) : BaseEntity()